package com.wave12.pro_cart.dao;

import com.wave12.pro_cart.entity.Cart;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;

import java.util.ArrayList;
import java.util.List;

@Component
public interface CartDao extends Mapper<Cart> {
    ArrayList<Cart> getMyOrderList(String userId, @Param("searchType") String searchType,
                                @Param("keyword") String keyword);
    ArrayList<Cart> getMyCartList(String userId, @Param("searchType") String searchType,
                                @Param("keyword") String keyword);


    ArrayList<Cart> getPageCartStatus(@Param("lstIds") List<String> lstIds);

    int isOrdered(String userId, String pid);
    
   
    Cart getOneProCartDetail();
}
